public class length {
    public static void main(String[] args) {
        String s1 = "abc";
        String s2 = "Java语言";
        int len1 = s1.length();
        int len2 = s2.length();
        System.out.println(len1);
        System.out.println(len2);
    }
}
